﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

// A namespace is a used to orgionaize code, it contains a collection of classes, structures etc
// Here we make a "Test" namepace that contains a single class, namely the "Program" class
namespace Test
{
    // This class contains the entry point of the application
    class Program
    {
        // Entry point of the program
        static void Main(string[] args)
        {
            // Print funcion, print a string that contains "Test".
            Console.WriteLine("Test");

            Console.WriteLine("Please enter your name");

            // Read line form input
            string Name = Console.ReadLine();

            // Concationate "Hello: " with the value of the Name string
            Console.WriteLine("Hello: " + Name + '!');

            // Place holder syntax, Name comes on the 0 place
            Console.WriteLine("Hellow: {0}", Name);

            Console.WriteLine("Enter second name");

            string Name2 = Console.ReadLine();

            Console.WriteLine("Hello: {0} and {1}", Name, Name2);

            int Number = 10;

            bool Is10;
            

            // Check if Number equals to 10
            if (Number == 10)
            {
                Is10 = true;
            }
            else
            {
                Is10 = false;
            }

            bool NumberIs10;

            // Has the same effect as the check above, but now we use the '?' operator
            // This is called a detemery operator
            NumberIs10 = Number == 10 ? true : false;

        }
    }
}
